{% load static %}
<!DOCTYPE html>
<html lang="cn">
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link rel="stylesheet" href="{% static 'layui/css/layui.css' %}">
        <link rel="stylesheet" href="{% static 'css/index.css' %}">
        <title>登录页</title>
    </head>
    <body style="background: #8bc34a;">
        <div class="layui-form-login">
            <form id="formall" name="formall" class="layui-form" method="post">
                <div class="layui-show-login">
                    <div class="layui-form-item">
                        <div class="layui-input-block layui-input-block-login">
                            <input id="username" type="text" name="username" autocomplete="off" placeholder="用户名" class="layui-input layui-input-txt">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block layui-input-block-login">
                            <input id="password" type="password" name="password" autocomplete="off" placeholder="密码" class="layui-input layui-input-txt">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block layui-input-block-login">
                            <button class="layui-btn layui-btn-lg layui-btn-normal layui-btn-big-login">登陆</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <script type="text/javascript">
            //防止session过期后登陆页面在iframe里面重新打开
            window.onload = function () {
                if (top.location.href !== location.href) {
                    top.location.href = location.href;
                }
            }
        </script>
        <script src="{% static 'layui/layui.all.js' %}"></script>
    </body>
</html>